package com.cellngine;

import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class Constants
{
	private static DateFormat	date_format_logger_file		= new SimpleDateFormat(
																	"yyyy.MM.dd_HH.mm.ss");
	private static DateFormat	date_format_logger_time_24	= new SimpleDateFormat("HH:mm:ss");
	
	public static enum DateFormatTypes
	{
		logger_file, logger_time_24;
	}
	
	public static synchronized DateFormat getDateFormat(final DateFormatTypes type)
	{
		switch (type)
		{
			case logger_file:
				return date_format_logger_file;
			case logger_time_24:
				return date_format_logger_time_24;
			default:
				return null;
		}
	}
	
	public static int			VERSION_MAJOR			= 0;
	public static int			VERSION_MINOR			= 1;
	public static Integer		VERSION_REVISION		= null;
	
	public static BigDecimal	ZERO					= new BigDecimal("0.00");
	
	public static final int		default_port			= 24558;
	public static final int		default_maxplayers		= 16;
	public static final int		connections_per_client	= 3;
	public static final int		socket_timeout_ms		= 10000;
	public static final int		elgamal_key_bits		= 2048;
	
	public static enum log_type
	{
		error, message, info, debug;
	}
	
	/** cellngine.hub */
	public static enum hub_http_methods
	{
		get, post, put
	}
}